// ------------------------------------------------------ Naming ------------------------------------------------------
Name Bloch MB152
ShortName MB152
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconmb152
Model faf.mb152
Texture mb152
//Third Person Camera Distance
CameraDistance 10.0
//Resting Pitch. Set this so the plane spawns level. It will fall onto its collision boxes automatically, but this lets you start it flat
RestingPitch 5.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Mode : One of Plane, Heli or VTOL. The VTOL has a toggle button that switches some model aesthetics and the flight mode
Mode Plane
//Throttle
MaxThrottle 0.84
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 1.1
TurnRightSpeed 1.1
//Pitch modifiers
LookUpSpeed 1.23
LookDownSpeed 1.23
//Roll modifiers
RollLeftSpeed 1.18
RollRightSpeed 1.18

//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 1.4
//Wheels

NumWheels 3
WheelPosition 0 43 -43 -36
WheelPosition 1 43 -43 36
WheelPosition 2 -88 -10 0
WheelSpringStrength 0.125
//Propeller Positions
//Propeller
Propeller 0 -92 -32 0 core metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
ShootParticlesPrimary cloud 1 0 0
Secondary Shell

ShootParticlesPrimary flansmod.fmflame 0 0 0
ShootParticlesSecondary flansmod.fmflame 0 0 0
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 2
ShootDelaySecondary 5
//Whether to alternate or fire all together
AlternatePrimary False
AlternateSecondary False
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary FullAuto
ModeSecondary FullAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 77 -9 -42 leftWing browning
ShootPointPrimary 77 -9 42 rightWing browning
ShootPointSecondary 71 -7 62 rightWing
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 1
AllowAllAmmo False
AddAmmo thirty7Cal
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 28 -2 0
Passengers 0
flightCeiling 1000
planeDiveFactor 1
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound propStart
StartSoundLength 20
PropSound propSound
PropSoundLength 30
ShootSoundPrimary YakShoot
ShootSoundSecondary Yak_37mmShoot
PlaceSoundPrimary A6M2_PlaceSound
// ------------------------------------------------------ Recipe ------------------------------------------------------
//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
AddRecipeParts core 1 Repair
AddRecipeParts rightWing 1 Repair
AddRecipeParts leftWing 1 Repair
AddRecipeParts tail 1 Repair
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart nose 100 88 -7 -7 12 13 14
SetupPart nose 100 63 -18 -14 25 32 28
SetupPart core 100 51 -15 -14 12 29 28
SetupPart core 100 -7 -15 -14 58 37 28
SetupPart tail 100 -59 -12 -12 52 33 24
SetupPart tail 100 -102 -5 -8 43 22 16
SetupPart tail 100 -100 17 -2 35 25 4
SetupPart tail 100 -96 11 -39 35 7 78
SetupPart leftWing 100 -1 -15 -117 60 15 103
SetupPart rightWing 100 -1 -15 14 60 15 103
ModelScale 1.0
BulletDetection 4
//Collision points for breaking wings etc. upon crashing
CollisionPoint 100 -1 0 nose
CollisionPoint 75 -1 0 nose
CollisionPoint 57 -1 0 core
CollisionPoint 30 -1 0 core
CollisionPoint 6 -1 0 core
CollisionPoint -33 -1 0 tail
CollisionPoint -85 5 0 tail
CollisionPoint -90 35 0 tail
CollisionPoint -80 16 -34 tail
CollisionPoint -80 16 33 tail
CollisionPoint 30 -5 -59 leftWing
CollisionPoint 30 -1 -103 leftWing
CollisionPoint 30 -5 59 rightWing
CollisionPoint 30 -1 103 rightWing


BulletSpeed 4.5
BulletSpread 2

IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 20

//nu flight model

//kilogram mass: somewhere between empty and max takeoff weight
mass 3000

//cruise speed for afterburn planes. default is 610mph, common for most jets, but set higher if you want super cruise
cruiseSpeed 368


//takeoff speed is anything above stall speed (mph)
//code automatically calculates engine power so this will be real takeoff speed
takeoffSpeed 95

//code learns true lift from this (meter/second)
climbRate 200

//code learns true drag from this (mph)
//diving speed is mechanically accurate by actually adding gravity to acceleration when diving
maximumSpeed 420 

//these two are for gun recoil in M/s
muzzleVelocity 1440

//if one 50 cal bullet is 10kg but there are 6 guns, enter 60kg
projectileMass 0.5

//multiplier to fuel consumption when afterburner on
afterBurnFuelPenalty 1.5

//measured in seconds at 100%throttle afterburner off